/*
 */
package is202.hrms.web;

import is202.hrms.ejb.ForelesningEJB;
import is202.hrms.entity.Forelesning;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *
 * @author Sondre
 */
@Named("forelesninglistbean")
@RequestScoped
public class ForelesningListBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @EJB ForelesningEJB forelEjb;

    public ForelesningListBean() {
    }

    public List<Forelesning> getForelesninger() {
        List<Forelesning> l = forelEjb.findAll();
        return l;
    }
}
